<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 2008-8-5 12:57:08 by Hibernate Tools 3.2.0.CR1 -->
<hibernate-mapping>
    <class name="cn.firstsoft.modules.fileman.domain.Fileman" table="fileman">
        <id name="id" type="integer">
            <column name="id" />
            <generator class="native" >
				<param name="sequence">FILEMAN_ID_SEQ</param>
            </generator>
        </id>
        <property name="pid" type="integer">
            <column name="pid" not-null="true" />
        </property>
        <property name="filename" type="string">
            <column name="filename" length="512" not-null="true" />
        </property>
        <property name="fileext" type="string">
            <column name="fileext" length="100" />
        </property>
        <property name="filesize" type="integer">
            <column name="filesize" />
        </property>
        <property name="serverfile" type="string">
            <column name="serverfile" length="256" />
        </property>
        <property name="type" type="int">
            <column name="type" not-null="true" />
        </property>
        <property name="userId" type="int">
            <column name="user_id" not-null="true" />
        </property>
        <property name="deptId" type="integer">
            <column name="dept_id" />
        </property>
        <property name="createdate" type="timestamp">
            <column name="createdate" length="23" />
        </property>
        <property name="descn" type="string">
            <column name="descn" length="512" />
        </property>
        <property name="times" type="int">
            <column name="times" not-null="true" />
        </property>
        <property name="lastuserId" type="integer">
            <column name="lastuser_id" />
        </property>
        <property name="lastvisitdate" type="timestamp">
            <column name="lastvisitdate" length="23" />
        </property>
        <property name="status" type="int">
            <column name="status" not-null="true" />
        </property>
        <property name="longcode" type="string">
            <column name="longcode" length="512" />
        </property>
        <property name="longname" type="string">
            <column name="longname" length="1024" />
        </property>
        <property name="lev" type="integer">
            <column name="lev" />
        </property>
        <property name="endflag" type="integer">
            <column name="endflag" />
        </property>
        <property name="isinherit" type="integer">
            <column name="isinherit" />
        </property>
        <property name="isissue" type="integer">
            <column name="isissue" default="0" />
        </property>
        <property name="contenttype" type="string">
            <column name="contenttype" length="256" />
        </property>    
        <property name="icon" type="string">
            <column name="icon" length="50" />
        </property>   
        <property name="userName" type="string">
            <column name="user_name" length="100" />
        </property>                      
    </class>
</hibernate-mapping>
